﻿package mortal.game.view.mainUI.smallMap.view.typeIconDataParser
{
    import Message.BroadCast.*;
    import Message.Public.*;
    import extend.language.*;
    import mortal.game.*;
    import mortal.game.cache.*;
    import mortal.game.mvc.*;
    import mortal.game.resource.*;
    import mortal.game.scene3D.layer3D.utils.*;
    import mortal.game.scene3D.player.entity.*;
    import mortal.game.view.mainUI.smallMap.view.data.*;

    public class SmallMap_EscortParser extends Object implements ISMallMapTyperIconDataParser
    {
        public static var instance:SmallMap_EscortParser = new SmallMap_EscortParser;

        public function SmallMap_EscortParser()
        {
            return;
        }// end function

        public function chooseIcon(param1:IEntity, param2:Array) : void
        {
            var _loc_3:* = GameController.smallMap.curMapId;
            var _loc_4:* = new SmallMapTypeIconData();
            _loc_4.x = param1.x2d;
            _loc_4.y = param1.y2d;
            _loc_4.name = "";
            _loc_4.tips = "";
            var _loc_5:* = param1.entityInfo.entityInfo;
            var _loc_6:* = Cache.instance.role.entityInfo;
            var _loc_7:* = EntityUtil.equal(_loc_5.ownerEntityId, _loc_6.entityId);
            var _loc_8:* = _loc_5.entityId.type == EEntityType._EEntityTypeEscort;
            if (Game.mapInfo != null && _loc_3 != Game.mapInfo.mapId)
            {
            }
            else if (_loc_8 && _loc_7)
            {
                _loc_4.iconName = ImagesConst.MapPoint_MovePoint;
                _loc_4.tips = Language.getString(21280);
                param2.push(_loc_4);
            }
            return;
        }// end function

    }
}
